import { Injectable } from '@angular/core';
import { HOSTURL, PREFIX } from '../../../config';
// import { HOSTURL, } from '../../config';
import { RequestClientService } from '../../request-client.service';

@Injectable({
  providedIn: 'root'
})
export class AttendanceService {

  constructor(
    private requestClientService: RequestClientService
  ) { }
  // 获取日历信息
  public async QueryProjectAttendanceReport(params) {
    const res = await this.requestClientService.post(HOSTURL + `/api/services/${PREFIX}/QianBian/QueryProjectAttendanceReport`, params);
    return res;
  }
  // 获取详情信息
  public async QueryProjectAttendancePagedList(params) {
    const res = await this.requestClientService.post(HOSTURL + `/api/services/${PREFIX}/QianBian/QueryProjectAttendancePagedList`, params);
    return res;
  }
}
